/*
* Client
*
* r2
*
* GNU General Public License v3.0
*/

package com.acme.bankapp.domain.bank;

import java.util.*;

public class Client {
	
	private ArrayList<Account> accounts = new ArrayList<>();
	
	private String name;
	private Gender gender;
	
	public Client(final String name, final Gender gender) {
		this.name = name;
		this.gender = gender;
	}
	
	public void addAccount(final Account a)
	{
		this.accounts.add(a);
	}
	
	public ArrayList<Account> getAccounts() {
		return this.accounts;
	}
	
	public String getClientSalutation() {
		return this.gender + " " + this.name;
	}
	
}
